@echo off

echo package start...

rem enter the root directory.
cd /d "%~dp0.."

cmd /c webpack --config src/main/webpack.config.js || goto :error

echo package successful.
exit 0

:error
echo package failed.
exit 1
